package cc.kzc.adminauth.ds1.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import lombok.Data;

@Entity
@Table(name = "t_role_perm_rel")
@DynamicUpdate(true)
@DynamicInsert(true)
@Data
public class RolePermRelEO implements Serializable {
	private static final long serialVersionUID = 132782382747148412L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "f_id")
	@Comment("角色和权限关系id")
	private Long id;

	@Column(name = "f_role_id")
	@Comment("角色id")
	private Long roleId;

	@Column(name = "f_perm_id")
	@Comment("权限id")
	private Long permId;

}
